﻿using GraphProcessor;
using IQIGame.Onigao.Logic;

namespace IQIGame.Onigao.GamePlay.Editors
{
    [System.Serializable, NodeMenuItem(SkillEditorConst.SkillEffective + "/" + SkillEditorConst.SkillDamageTempModify, typeof(SkillEditorGraph))]
    public class SkillEffectiveNode_DamageTempModify : SkillEffectiveNode
    {
        protected override ESkillEffectiveType effectType => ESkillEffectiveType.Buff;

        [Output("伤害修正万分比")] public FormulaSetter damageModify;
        [Output("受伤修正万分比")] public FormulaSetter hurtModify;

        protected override SkillCustomConfig CreateConfig()
        {
            var rConfig = new SkillEffective_DamageTempModify_ConfigData();
            this.damageModify = new FormulaSetter((x) => rConfig.damageModify = x);
            this.hurtModify = new FormulaSetter((x) => rConfig.hurtModify = x);
            return rConfig;
        }
    }
}